// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

package com.nnee.p_b.p_a;

import com.nnee.p_a.p_a.cls_e;
import com.nnee.p_f.cls_b;
import com.nnee.p_fk.p_a.cls_k;
import com.nnee.p_pr.p_a.cls_i;
import com.nnee.p_pr.p_b.cls_a;
import java.io.File;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;

// Referenced classes of package com.nnee.b.a:
//            j, ac, d, g, 
//            b

public class cls_f extends cls_j
{

    protected cls_f(int l)
    {
        super(l);
    }

    public static cls_f a()
    {
        return new cls_f(400);
    }

    public static cls_f a(com.nnee.p_pr.p_atom.p_b.cls_b b1)
    {
        cls_f f1 = new cls_f(401);
        f1.a = b1;
        return f1;
    }

    public com.nnee.p_fk.p_b.cls_b a(Object obj, int l, int i1)
    {
        Object obj1;
        if(i1 == 0 && n() == 400)
            obj1 = new cls_ac(this, obj, l, i1);
        else
            obj1 = super.a(obj, l, i1);
        return ((com.nnee.p_fk.p_b.cls_b) (obj1));
    }

    protected void a(int l, Object obj)
    {
        switch(n())
        {
        
        case 400:
        	List list;
            if(obj == null || !(obj instanceof cls_b) || (list = ((cls_b)obj).d("font")) == null)
                return;
            LinkedList linkedlist = new LinkedList();
            for(Iterator iterator = list.iterator(); iterator.hasNext(); linkedlist.add(new com.nnee.p_pr.p_atom.p_b.cls_b((cls_b)iterator.next())));
            com.nnee.p_pr.p_c.cls_b.a(com.nnee.p_b.p_a.cls_d.h().a(), linkedlist);
            c(l, linkedlist);
            break;
        default:
        	c(l, null);
        	break;
        }
        
    }

    public void c()
    {
        if(com.nnee.p_pr.p_b.cls_a.S()) {
        	cls_k k1=null;
            switch(n())
            {
            

            case 400: 
            	if(k1 == null)
                {
                    d(0, null);
                    h();
                } else
                {
                    a(k1);
                }
            	break;
            case 401: 
            	k1 = new cls_k(com.nnee.p_pr.p_b.cls_a.M());
            	if(k1 == null)
                {
                    d(0, null);
                    h();
                } else
                {
                    a(k1);
                }
            	break;
            default:
                k1 = null;
                break;
            }
            a(com.nnee.p_b.p_a.cls_g.a(a.c(), false, false, false));
        }else {
//        	com.nnee.p_b.p_a.cls_d.h().a(this);
        }
 
    }

    public void c(int l, int i1, int j1, Object obj)
    {
        if(n() != 401 || obj == null || !(obj instanceof  com.nnee.p_b.p_a.cls_b)) {
        	c(l, null);
        } else 
        {
        	com.nnee.p_b.p_a.cls_b b1 = (com.nnee.p_b.p_a.cls_b)obj;
            if(b1.b == null) {
            	c(l, null);
            }else {
            	File file;
                File file1;
                file = new File((new StringBuilder()).append(cls_e.h()).append("/fonts").toString());
                if(!file.exists())
                    file.mkdirs();
                file1 = new File(b1.b);
                if(!cls_i.a(file1, a.d())) {
                	cls_e.a(file1);
                	c(l, null);
                } else 
                {
                	File file2 = new File(file, (new StringBuilder()).append(file1.getName()).append(".ttf").toString());
                    if(!cls_e.a(file1, file2)){
                    	com.nnee.p_g.cls_b.d("pris font", "rename failed");
                    	c(l, null);
                    }else {
                    	 a.e(file2.getPath());
                         com.nnee.p_pr.p_c.cls_b.a(com.nnee.p_b.p_a.cls_d.h().a(), a.a(), a.f());
                         c(l, a);
                    }
                }
            }
        }
 
    }

    public void d(int l, int i1, int j1, Object obj)
    {
        d(l, obj);
    }

    com.nnee.p_pr.p_atom.p_b.cls_b a;
}
